import React from 'react'
import { createNativeStackNavigator } from '@react-navigation/native-stack';
import UserScreen from '../screens/UserPage'
import LoginScreen from '../screens/UserPage/LoginPage'
import OrdersScreen from '../screens/UserPage/OrdersPage'

const Stack = createNativeStackNavigator();

export default function UserStack() {
  return (
    <Stack.Navigator initialRouteName="UserPage">
      <Stack.Screen name="UserPage" component={UserScreen} options={{ title: '个人信息', headerBackVisible: false }} />
      <Stack.Screen name="LoginPage" component={LoginScreen} options={{ title: '用户登录', headerBackVisible: false }} />
      <Stack.Screen name="OrdersPage" component={OrdersScreen} options={{ title: '挂号订单' }} />
    </Stack.Navigator>
  );
}